﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2012/2/7 19:58:23
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Sector7.Restaurant.EntityType
{
    /// <summary>
    /// 员工组信息实体
    /// </summary>
    [Serializable()]
    [DataContract]
    public class RS_EmployeeGroup : Entity
    {
        #region Inner members
        private int _groupId;
        private string _groupName = string.Empty;
        private decimal _bonusRate;
        private long _permission;
        private List<RS_Employee> _employees = new List<RS_Employee>();
        #endregion

        #region Accessor
        /// <summary>
        /// 获取或设置员工组编号
        /// </summary>
        [DataMember]
        public int GroupId
        {
            get { return _groupId; }
            set { _groupId = value; }
        }

        /// <summary>
        /// 获取或设置员工组名称
        /// </summary>
        [DataMember]
        public string GroupName
        {
            get { return _groupName; }
            set { _groupName = value; }
        }

        /// <summary>
        /// 获取或设置员工组提成比例
        /// </summary>
        [DataMember]
        public decimal BonusRate
        {
            get { return _bonusRate; }
            set { _bonusRate = value; }
        }

        /// <summary>
        /// 获取或设置员工组权限
        /// </summary>
        [DataMember]
        public long Permission
        {
            get { return _permission; }
            set { _permission = value; }
        }

        /// <summary>
        /// 获取或设置员工列表
        /// </summary>
        [DataMember]
        public List<RS_Employee> Employees
        {
            get { return _employees; }
            set { _employees = value; }
        }
        #endregion
    }
}
